package com.nkym.wypan.model.resp.userfile;/*
 * @ClassName SearchVo
 * @Desc TODO
 * @Author 19637
 * @Date 2023/7/6 20:09
 * @Version 1.0
 */

import com.nkym.wypan.model.entity.UserFile;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BreadcrumbVo implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 文件记录ID
     */

    private Long id;
    /**
     * 文件名
     */

    private String name;

    private Long parentId;


    public static BreadcrumbVo transfer(UserFile userFile) {
        BreadcrumbVo breadcrumbVo = new BreadcrumbVo();
        breadcrumbVo.setId(userFile.getFileId());
        breadcrumbVo.setName(userFile.getFilename());
        breadcrumbVo.setParentId(userFile.getParentId());
        return breadcrumbVo;
    }
}
